<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>个人信息 - 家族传承</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <script defer src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"></script>
</head>
<body class="bg-white">
  <header class="bg-red-500 text-white p-4 flex items-center justify-between">
    <h2 class="text-xl font-semibold">个人信息</h2>
    <a href="index.html" class="text-white hover:underline"><i class="fas fa-home"></i></a>
  </header>
  <main class="p-4 max-w-md mx-auto">
    <form class="space-y-6">
      <div class="flex items-center space-x-4">
        <img src="https://source.unsplash.com/100x100/?portrait" alt="头像" class="w-24 h-24 rounded-full object-cover border" />
        <label class="cursor-pointer bg-yellow-100 p-2 rounded text-red-500 hover:bg-yellow-200 transition">
          <i class="fas fa-camera"></i> 更换头像
          <input type="file" class="hidden" accept="image/*">
        </label>
      </div>
      <div>
        <label class="block text-gray-700">昵称</label>
        <input type="text" class="w-full border p-2 rounded" placeholder="输入昵称">
      </div>
      <div>
        <label class="block text-gray-700">性别</label>
        <div class="flex items-center space-x-4">
          <label class="flex items-center"><input type="radio" name="gender" class="mr-2"> 男</label>
          <label class="flex items-center"><input type="radio" name="gender" class="mr-2"> 女</label>
          <label class="flex items-center"><input type="radio" name="gender" class="mr-2"> 其他</label>
        </div>
      </div>
      <div>
        <label class="block text-gray-700">出生日期</label>
        <input type="date" class="w-full border p-2 rounded">
      </div>
      <div>
        <label class="block text-gray-700">个人简介</label>
        <textarea class="w-full border p-2 rounded" rows="4" placeholder="写下你的家族故事、兴趣爱好..."></textarea>
      </div>
      <div class="text-center">
        <button type="submit" class="bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 transition">保存</button>
      </div>
    </form>
  </main>
</body>
</html>